package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="HouseBuilding"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class HouseBuilding implements Serializable {

    /** identifier field */
    private Integer buildId;

    /** nullable persistent field */
    private String buildName;

    /** nullable persistent field */
    private String region;

    /** nullable persistent field */
    private String structure;

    /** nullable persistent field */
    private String buildDate;

    /** nullable persistent field */
    private Double area;

    /** nullable persistent field */
    private Integer floorNum;

    /** nullable persistent field */
    private Integer unitNum;

    /** nullable persistent field */
    private Integer roomNum;

    /** nullable persistent field */
    private String remark;

    /** nullable persistent field */
    private String ispublished;

    /** persistent field */
    private String userId;

    /** nullable persistent field */
    private String latestDate;

    /** nullable persistent field */
    private Double buildArea;

    /** nullable persistent field */
    private String assoId;

    /** full constructor */
    public HouseBuilding(String buildName, String region, String structure, String buildDate, Double area, Integer floorNum, Integer unitNum, Integer roomNum, String remark, String ispublished, String userId, String latestDate, Double buildArea, String assoId) {
        this.buildName = buildName;
        this.region = region;
        this.structure = structure;
        this.buildDate = buildDate;
        this.area = area;
        this.floorNum = floorNum;
        this.unitNum = unitNum;
        this.roomNum = roomNum;
        this.remark = remark;
        this.ispublished = ispublished;
        this.userId = userId;
        this.latestDate = latestDate;
        this.buildArea = buildArea;
        this.assoId = assoId;
    }

    /** default constructor */
    public HouseBuilding() {
    }

    /** minimal constructor */
    public HouseBuilding(String userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.id
     *             generator-class="identity"
     *             type="java.lang.Integer"
     *             column="BuildId"
     *             unsaved-value="0"
     *         
     */
    public Integer getBuildId() {
        return this.buildId;
    }

    public void setBuildId(Integer buildId) {
        this.buildId = buildId;
    }

    /** 
     *            @hibernate.property
     *             column="BuildName"
     *             length="100"
     *         
     */
    public String getBuildName() {
        return this.buildName;
    }

    public void setBuildName(String buildName) {
        this.buildName = buildName;
    }

    /** 
     *            @hibernate.property
     *             column="Region"
     *             length="6"
     *         
     */
    public String getRegion() {
        return this.region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    /** 
     *            @hibernate.property
     *             column="Structure"
     *             length="6"
     *         
     */
    public String getStructure() {
        return this.structure;
    }

    public void setStructure(String structure) {
        this.structure = structure;
    }

    /** 
     *            @hibernate.property
     *             column="BuildDate"
     *             length="23"
     *         
     */
    public String getBuildDate() {
        return this.buildDate;
    }

    public void setBuildDate(String buildDate) {
        this.buildDate = buildDate;
    }

    /** 
     *            @hibernate.property
     *             column="Area"
     *             length="53"
     *         
     */
    public Double getArea() {
        return this.area;
    }

    public void setArea(Double area) {
        this.area = area;
    }

    /** 
     *            @hibernate.property
     *             column="FloorNum"
     *             length="10"
     *         
     */
    public Integer getFloorNum() {
        return this.floorNum;
    }

    public void setFloorNum(Integer floorNum) {
        this.floorNum = floorNum;
    }

    /** 
     *            @hibernate.property
     *             column="UnitNum"
     *             length="10"
     *         
     */
    public Integer getUnitNum() {
        return this.unitNum;
    }

    public void setUnitNum(Integer unitNum) {
        this.unitNum = unitNum;
    }

    /** 
     *            @hibernate.property
     *             column="RoomNum"
     *             length="10"
     *         
     */
    public Integer getRoomNum() {
        return this.roomNum;
    }

    public void setRoomNum(Integer roomNum) {
        this.roomNum = roomNum;
    }

    /** 
     *            @hibernate.property
     *             column="Remark"
     *             length="200"
     *         
     */
    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    /** 
     *            @hibernate.property
     *             column="IsPublished"
     *             length="1"
     *         
     */
    public String getIspublished() {
        return this.ispublished;
    }

    public void setIspublished(String ispublished) {
        this.ispublished = ispublished;
    }

    /** 
     *            @hibernate.property
     *             column="UserId"
     *             length="7"
     *             not-null="true"
     *         
     */
    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.property
     *             column="LatestDate"
     *             length="23"
     *         
     */
    public String getLatestDate() {
        return this.latestDate;
    }

    public void setLatestDate(String latestDate) {
        this.latestDate = latestDate;
    }

    /** 
     *            @hibernate.property
     *             column="BuildArea"
     *             length="53"
     *         
     */
    public Double getBuildArea() {
        return this.buildArea;
    }

    public void setBuildArea(Double buildArea) {
        this.buildArea = buildArea;
    }

    /** 
     *            @hibernate.property
     *             column="assoId"
     *             length="20"
     *         
     */
    public String getAssoId() {
        return this.assoId;
    }

    public void setAssoId(String assoId) {
        this.assoId = assoId;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("buildId", getBuildId())
            .toString();
    }

}
